{extend name="layout" /}

{block name="main"}
<section class="Hui-article-box">
    <nav class="breadcrumb"><i class="Hui-iconfont"></i> 首页
        <span class="c-gray en">&gt;</span>
        管理员管理
        <span class="c-gray en">&gt;</span>
        管理员列表
        <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont"></i></a>
    </nav>
    <div class="Hui-article">
        <article class="cl pd-20">


            <div class="mt-20">
                <div id="DataTables_Table_0_wrapper" class="dataTables_wrapper no-footer">

                    <table class="table table-border table-bordered table-bg table-hover table-sort dataTable no-footer" id="DataTables_Table_0" role="grid" aria-describedby="DataTables_Table_0_info">
                        <thead>
                        <tr class="text-c" role="row">
                            <th width="25" class="sorting_disabled" rowspan="1" colspan="1" aria-label="" style="width: 25px;"><input type="checkbox" name="" value=""></th>
                            <th width="30" class="sorting_desc" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-sort="descending" aria-label="ID: 升序排列" style="width: 50px;">ID</th>
                            <th width="50" class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="标题: 升序排列" style="width: 607px;">账户</th>
                            <th width="50" class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="标题: 升序排列" style="width: 607px;">创建时间</th>
                            <th width="50" class="sorting_disabled" rowspan="1" colspan="1" aria-label="操作" style="width: 120px;">操作</th></tr>
                        </thead>
                        <tbody>

                        {volist name="list" id="vo"}
                        <tr class="text-c odd" role="row">
                            <td><input type="checkbox" value="" name=""></td>
                            <td class="sorting_1">{$vo.id}</td>
                            <td class="text-c">{$vo.username}</td>
                            <td>{$vo.created_at}</td>

                            <td class="f-14 td-manage">

                                <!--<a style="text-decoration:none" class="ml-5" onclick="article_del(this,'{$vo.id}')" href="javascript:;" title="删除"><i class="Hui-iconfont"></i></a>-->

                            </td>
                        </tr>
                        {/volist}

                        </tbody>
                    </table>
                    {$sourse|raw}
                    <!--<div class="dataTables_info" id="DataTables_Table_0_info" role="status" aria-live="polite">显示 1 到 2 ，共 2 条</div>-->
                    <!--<div class="dataTables_paginate paging_simple_numbers" id="DataTables_Table_0_paginate"><a class="paginate_button previous disabled" aria-controls="DataTables_Table_0" data-dt-idx="0" tabindex="0" id="DataTables_Table_0_previous">上一页</a><span><a class="paginate_button current" aria-controls="DataTables_Table_0" data-dt-idx="1" tabindex="0">1</a></span><a class="paginate_button next disabled" aria-controls="DataTables_Table_0" data-dt-idx="2" tabindex="0" id="DataTables_Table_0_next">下一页</a></div>-->
                </div>
            </div>
        </article>
    </div>
</section>
{/block}

{block name="js"}
<script type="text/javascript" src="/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="/lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript">

    /*资讯-删除*/
    function article_del(obj,id){

        layer.confirm('确认要删除吗？',function(index){
            $.post("/admin/index/delSour",{id:id},function (e) {
                if(e.code == 200){
                    $(obj).parents("tr").remove();
                    layer.msg('已删除!',{icon:1,time:1000});
                }else{
                    layer.msg('删除失败!',{icon:2,time:1000});
                }
            })
        });
    }

</script>
{/block}